﻿@model Solution.Business.Entities.News

@{
    ViewBag.Title = "Delete";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>News</legend>

    <div class="display-label">Title</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Title)
    </div>

    <div class="display-label">Date</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Date)
    </div>

    <div class="display-label">Content</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Content)
    </div>

    <div class="display-label">Price</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Price)
    </div>

    <div class="display-label">Loại tiền :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Payment.Name)
    </div>

    <div class="display-label">Acreage</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Acreage)
    </div>

    <div class="display-label">Đơn vị tính :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Unit.Name)
    </div>

    <div class="display-label">Address</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Address)
    </div>

    <div class="display-label">Images</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Images)
    </div>

    <div class="display-label">Loại giao dịch :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Transaction.Name)
    </div>

    <div class="display-label">Quận/Huyện :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Location.Name)
    </div>

    <div class="display-label">Hướng :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Direction.Name)
    </div>

    <div class="display-label">Tình trạng pháp lý :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Legal.Name)
    </div> 

    <div class="display-label">Vị trí tin :</div>
    <div class="display-field">
        @{
            if(Model.Position == 1)
            {
                @Html.Label("Vị trí VIP")
            }
            else
            {
                @Html.Label("Vị trí bình thường")
            }
            }
    </div>

    <div class="display-label">Hình ảnh 1 :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Image1)
    </div>

    <div class="display-label">Hình ảnh 2 :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Image2)
    </div>

    <div class="display-label">Hình ảnh 3 :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Image3)
    </div>

    <div class="display-label">Hình ảnh 4 :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Image4)
    </div>

    <div class="display-label">Hình ảnh 5 :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Image5)
    </div>

    <div class="display-label">Hình ảnh 6 :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Image6)
    </div>

    <div class="display-label">Hình ảnh 7 :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Image7)
    </div>

    <div class="display-label">Hình ảnh 8 :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Image8)
    </div>

    <div class="display-label">Hình ảnh 9 :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Image9)
    </div>

    <div class="display-label">Video</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Video)
    </div>
    <div class="display-label">Bản đồ mô tả</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Map)
    </div>
    <div class="display-label">Trạng thái hiển thị</div>
    <div class="display-field">
       @{
            if(Model.Status == 1)
            {
                @Html.Label("Hiện tin")
            }
            else if(Model.Status == 2)
            {
                @Html.Label("Ẩn tin")
            }
            }
    </div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
